package com.zjt.www;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ASUS
 * Date: 2023-04-22
 * Time: 21:43
 */
class Animal {
    public String name;
    public int age;

}

class Dog extends Animal{
    public void eat (){
        System.out.println(this.name + "正在吃狗粮！");
    }
    public void dark () {
        System.out.println(this.name + "正在汪汪汪");
    }
}
public class TestDemo {
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.name = "小灰灰";
        dog.age = 5;
        dog.eat();
        dog.dark();
        System.out.println("Day 35");
    }
}
